package com.cdeledu.thread4.c02;

public class ThreadTest {
	
	/**修改线程的名字
	 * @param args
	 * @throws InterruptedException
	 */
	public static void main(String[] args) throws InterruptedException {
		Thread t1 = new Thread(()->{System.out.print(Thread.currentThread().getName());});
		t1.setName("test");
		t1.start();
		Thread.sleep(1000);
	}

}
